package edu.java.lectures.lec05.polimorphism;

public class ProbaTriangle {

    public static void main(String[] args) {
	System.out.println("\n\n----------EquilateralTriangle----------");
	EquilateralTriangle rawnostranenTr = new EquilateralTriangle(3);
	// System.out.println(rawnostranenTr);
	// System.out.println(rawnostranenTr.calculatePerimeter());
	// System.out.println(rawnxjostranenTr.calculateSurface());
	System.out.println(rawnostranenTr.getMedicenterName());
	//
	System.out.println("\n\n----------IsoscelesTriangle----------");
	IsoscelesTriangle rawnobedrenTr = new IsoscelesTriangle(2, 3);
	// System.out.println(rawnobedrenTr);
	// System.out.println(rawnobedrenTr.calculatePerimeter());
	// System.out.println(rawnobedrenTr.calculateSurface());
	//
	// System.out.println(rawnobedrenTr.getA());
	System.out.println(rawnobedrenTr.getMedicenterName());
	System.out.println(rawnobedrenTr.a);
	System.out.println(((EquilateralTriangle)rawnobedrenTr).a);
	System.out.println(((EquilateralTriangle)rawnobedrenTr).getMedicenterName());

	 System.out.println("\n\n----------ScaleneTriangle----------");
	 ScaleneTriangle raznostranenTr=new ScaleneTriangle(2,3,4);
	// System.out.println(raznostranenTr);
	// System.out.println(raznostranenTr.calculatePerimeter());
	// System.out.println(raznostranenTr.calculateSurface());
	//	
	// System.out.println(raznostranenTr.toString("Overloading in ScaleneTriangle class"));
	 System.out.println(raznostranenTr.getMedicenterName());

    }
}
